import service from '@/utils/request';

/**
 *  axios封装的登录接口
 * @param {*} userAccount 管理员账号
 * @param {*} password 密码
 * @returns 
 */
// export 关键字 导出接口 
export function loginService(userAccount,password) {
    return service({
        url: '/sysUser/login',
        method: 'post',
        data: {
            userAccount,
            password
        }
    })
}
export function getUserInfoService() {
    return service({
        url: '/sysUser/info',
        method: 'get'
    })
}

export function logoutService() {
    return service({
        url: '/sysUser/logout',
        method: 'delete'
    })
}